import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
type int = number;
//class SZazenReward
    
    export  class SZazenReward extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SZazenReward();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.time);
            arg1.writeInt(this.experience);
            arg1.writeInt(this.nimbus);
            arg1.writeInt(this.experienceAdd);
            arg1.writeInt(this.nimbusAdd);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.time = arg1.readInt();
            this.experience = arg1.readInt();
            this.nimbus = arg1.readInt();
            this.experienceAdd = arg1.readInt();
            this.nimbusAdd = arg1.readInt();
            return;
        }

        public /* const */_type: int=12056;

        public /* var */time: int;

        public /* var */experience: int;

        public /* var */nimbus: int;

        public /* var */experienceAdd: int;

        public /* var */nimbusAdd: int;

        public static /* var */_regist: SZazenReward;
    }

            SZazenReward._regist = new SZazenReward(true);
        